package com.beizhen.demo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@TableName("code")
@ApiModel(value = "Code对象", description = "")
public class Code implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "区划编号")
    @TableId(value = "id")
    private int id;
    @ApiModelProperty(value = "电话号")
    private String phone;
    @ApiModelProperty(value = "编码")
    private String code;

}
